//引入必要模块
const mysql = require('mysql');

//连接数据库
const pool = mysql.createPool({
    host:'127.0.0.1',
    port:'3306',
    user:'root',
    password:'',
    database:'xz',
    charset:'utf8',
    connectionLimit:10,
});

//导出对象
module.exports = pool;